﻿using System;
using System.Collections.Generic;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
   public class HoaDonBUS
    {
        public List<DTO.HoaDonDTO> SelectAll()
        {
            HoaDonDAO hdDAO = new HoaDonDAO();
            return hdDAO.SelectAll_returnList();
        }
        public List<DTO.HoaDonDTO> LayHoaDonNVTheoNgay(DateTime f, DateTime t)
        {
            DAO.HoaDonDAO hd = new HoaDonDAO();
            return hd.LayHoaDonNVTheoNgay(f, t);
        }
        public List<DTO.HoaDonDTO> LayHoaDonKLTheoNgay(DateTime f, DateTime t)
        {
            DAO.HoaDonDAO hd = new HoaDonDAO();

            return hd.LayHoaDonKLTheoNgay(f, t);
        }
        public int ThemHoaDOn()
        {
            DAO.HoaDonDAO dao = new HoaDonDAO();
            return dao.ThemHoaDon();
        }
        public int LayHoaDonMoi()
        {
            DAO.HoaDonDAO dao = new HoaDonDAO();
            return dao.LayMaHoaDonMoi();
        }
    }
}
